package com.xdf.xzymanagementsystem.service.impl;

import com.xdf.xzymanagementsystem.dao.UserContactMapper;
import com.xdf.xzymanagementsystem.entity.UserContact;
import com.xdf.xzymanagementsystem.service.UserContactService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author chanchaw
 * @create 2022-08-24 15:41
 */
@Service
public class UserContactServiceImpl implements UserContactService {
    @Autowired
    private UserContactMapper dao;
    @Override
    public int deleteByPrimaryKey(Integer iid) {
        return dao.deleteByPrimaryKey(iid);
    }

    @Override
    public int insert(UserContact row) {
        return dao.insert(row);
    }

    @Override
    public int insertSelective(UserContact row) {
        return dao.insertSelective(row);
    }

    @Override
    public UserContact selectByPrimaryKey(Integer iid) {
        return dao.selectByPrimaryKey(iid);
    }

    @Override
    public int updateByPrimaryKeySelective(UserContact row) {
        return dao.updateByPrimaryKeySelective(row);
    }

    @Override
    public int updateByPrimaryKey(UserContact row) {
        return dao.updateByPrimaryKey(row);
    }

    @Override
    public List<UserContact> selectByParam(UserContact record) {
        return dao.selectByParam(record);
    }
}
